#!/usr/bin/make
# SCE CONFIDENTIAL
# PLAYSTATION(R)3 Programmer Tool Runtime Library 192.001
#                 Copyright (C) 2007 Sony Computer Entertainment Inc.
#                                                All Rights Reserved.

include MakeDefs

MKFSELF_NPDRM = $(CELL_HOST_PATH)/bin/make_fself_npdrm
MKPKG_NPDRM = $(CELL_HOST_PATH)/bin/make_package_npdrm

PPU_INCDIRS		+= -Isrc/common -Isrc/libgambatte/include -Isrc/libgambatte/src -Isrc/zlib
PPU_CPPFLAGS	+= -DPSGL
PPU_CXXSTDFLAGS	+= -fno-exceptions -O2 -w
PPU_SRCS		:= src/main.cpp src/FrameBuffer.cpp src/utility.cpp src/PS3Audio.cpp src/PS3Input.cpp src/PS3Video.cpp src/rom_list.cpp src/gambatte_help.cpp src/libgambatte/src/bitmap_font.cpp src/libgambatte/src/colorconversion.cpp src/libgambatte/src/cpu.cpp src/libgambatte/src/gambatte.cpp src/libgambatte/src/initstate.cpp src/libgambatte/src/interrupter.cpp src/libgambatte/src/memory.cpp src/libgambatte/src/rtc.cpp src/libgambatte/src/sound.cpp src/libgambatte/src/state_osd_elements.cpp src/libgambatte/src/statesaver.cpp src/libgambatte/src/video.cpp src/libgambatte/src/file/file_zip.cpp src/libgambatte/src/sound/channel1.cpp src/libgambatte/src/sound/channel2.cpp src/libgambatte/src/sound/channel3.cpp src/libgambatte/src/sound/channel4.cpp src/libgambatte/src/sound/duty_unit.cpp src/libgambatte/src/sound/envelope_unit.cpp src/libgambatte/src/sound/length_counter.cpp src/libgambatte/src/video/basic_add_event.cpp src/libgambatte/src/video/break_event.cpp src/libgambatte/src/video/irq_event.cpp src/libgambatte/src/video/ly_counter.cpp src/libgambatte/src/video/lyc_irq.cpp src/libgambatte/src/video/m3_extra_cycles.cpp src/libgambatte/src/video/mode0_irq.cpp src/libgambatte/src/video/mode1_irq.cpp src/libgambatte/src/video/mode2_irq.cpp src/libgambatte/src/video/mode3_event.cpp src/libgambatte/src/video/sc_reader.cpp src/libgambatte/src/video/scx_reader.cpp src/libgambatte/src/video/sprite_mapper.cpp src/libgambatte/src/video/we.cpp src/libgambatte/src/video/we_master_checker.cpp src/libgambatte/src/video/wx_reader.cpp src/libgambatte/src/video/wy.cpp src/libgambatte/src/video/filters/catrom2x.cpp src/libgambatte/src/video/filters/catrom3x.cpp src/libgambatte/src/video/filters/kreed2xsai.cpp src/libgambatte/src/video/filters/maxsthq2x.cpp src/libgambatte/src/video/filters/maxsthq3x.cpp src/common/resample/resamplerinfo.cpp src/common/resample/chainresampler.cpp src/common/resample/u48div.cpp


			
PPU_TARGET		:= gambatte.elf 
PPU_LDLIBS		:= $(GRAPHICS_SAMPLE_CORE_LIBS) -laudio_stub -L. -lz

include MakeRules

.PHONY: pkg
pkg: $(PPU_TARGET) 
	$(MKFSELF_NPDRM) $(PPU_TARGET) pkg/USRDIR/EBOOT.BIN
	$(MKPKG_NPDRM) pkg/package.conf pkg


